#ifndef MYHTTPCLIENT_H
#define MYHTTPCLIENT_H

#include <boost/asio.hpp>
#include <iostream>

class MyHTTPClient
{
public:
    MyHTTPClient();
    virtual ~MyHTTPClient();

    void            connect();
    const void      disconnect();
    const bool      isConnected() const;
    void            sendRequest(const std::string);
    std::string*    recvRss();
    void            createHeader(const std::string);

private:
    bool                            connected;
    boost::asio::io_service         io_service;
    boost::asio::ip::tcp::socket    *socket;
    std::string                     header;
    std::string                     address;
    std::string                     file;
};

#endif // MYHTTPCLIENT_H
